package no.saiboten.tourbuilder.core.controller;

import no.saiboten.tourbuilder.core.constants.ResourceConstants;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class DefaultController {

	@RequestMapping("")
	public String defaultHandling() {
		return ResourceConstants.DEFAULT_STARTPAGE;
	}

	@RequestMapping(ResourceConstants.DEFAULT_STARTPAGE)
	public String startPageHandling() {
		return ResourceConstants.DEFAULT_STARTPAGE;
	}

	@RequestMapping("error")
	public String errorHandling() {
		return "error";
	}

	@RequestMapping("menu")
	public String menu() {
		return "menu";
	}

}
